home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- import java.io.IOException;
- import java.io.ObjectOutputStream;
- import java.io.Serializable;
-
- class Collections$SynchronizedMap<K, V> implements Map<K, V>, Serializable {
- private static final long serialVersionUID = 1978198479659022715L;
- // $FF: renamed from: m java.util.Map
- private final Map<K, V> field_0;
- final Object mutex;
- private transient Set<K> keySet = null;
- private transient Set<Map.Entry<K, V>> entrySet = null;
- private transient Collection<V> values = null;
-
- Collections$SynchronizedMap(Map<K, V> var1) {
- if (var1 == null) {
- throw new NullPointerException();
- } else {
- this.field_0 = var1;
- this.mutex = this;
- }
- }
-
- Collections$SynchronizedMap(Map<K, V> var1, Object var2) {
- this.field_0 = var1;
- this.mutex = var2;
- }
-
- public int size() {
- synchronized(this.mutex) {
- return this.field_0.size();
- }
- }
-
- public boolean isEmpty() {
- synchronized(this.mutex) {
- return this.field_0.isEmpty();
- }
- }
-
- public boolean containsKey(Object var1) {
- synchronized(this.mutex) {
- return this.field_0.containsKey(var1);
- }
- }
-
- public boolean containsValue(Object var1) {
- synchronized(this.mutex) {
- return this.field_0.containsValue(var1);
- }
- }
-
- public V get(Object var1) {
- synchronized(this.mutex) {
- return (V)this.field_0.get(var1);
- }
- }
-
- public V put(K var1, V var2) {
- synchronized(this.mutex) {
- return (V)this.field_0.put(var1, var2);
- }
- }
-
- public V remove(Object var1) {
- synchronized(this.mutex) {
- return (V)this.field_0.remove(var1);
- }
- }
-
- public void putAll(Map<? extends K, ? extends V> var1) {
- synchronized(this.mutex) {
- this.field_0.putAll(var1);
- }
- }
-
- public void clear() {
- synchronized(this.mutex) {
- this.field_0.clear();
- }
- }
-
- public Set<K> keySet() {
- synchronized(this.mutex) {
- if (this.keySet == null) {
- this.keySet = new Collections.SynchronizedSet(this.field_0.keySet(), this.mutex);
- }
-
- return this.keySet;
- }
- }
-
- public Set<Map.Entry<K, V>> entrySet() {
- synchronized(this.mutex) {
- if (this.entrySet == null) {
- this.entrySet = new Collections.SynchronizedSet(this.field_0.entrySet(), this.mutex);
- }
-
- return this.entrySet;
- }
- }
-
- public Collection<V> values() {
- synchronized(this.mutex) {
- if (this.values == null) {
- this.values = new Collections.SynchronizedCollection(this.field_0.values(), this.mutex);
- }
-
- return this.values;
- }
- }
-
- public boolean equals(Object var1) {
- synchronized(this.mutex) {
- return this.field_0.equals(var1);
- }
- }
-
- public int hashCode() {
- synchronized(this.mutex) {
- return this.field_0.hashCode();
- }
- }
-
- public String toString() {
- synchronized(this.mutex) {
- return this.field_0.toString();
- }
- }
-
- private void writeObject(ObjectOutputStream var1) throws IOException {
- synchronized(this.mutex) {
- var1.defaultWriteObject();
- }
- }
- }
-